import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link} from 'react-router-dom'
import FillWords from './fillWords'

class Games extends Component {
  constructor(props) {
    super(props)

    this.state = {

    }
  }

  componentDidMount() {
    this.init()
  }

  init () {
    
  }



  render() {
    return (
      <Router>
        <div>
          <ul>
            <li><Link to="/">首页</Link></li>
            <li><Link to="/games/words">填词游戏</Link></li>
          </ul>
          <hr/>

          <div className="container-box">
            <Route path="/games/words" component={FillWords}/>
          </div>
        </div>
      </Router>
    )
  }
}

export default Games;
